﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net.Layout;
using System.Threading;

namespace Infrastructure.Logging
{
    public class LoggerLayout : PatternLayout
    {
        public override string ContentType
        {
            get
            {
                return base.ContentType;
            }
        }

        public override string Header
        {
            get
            {
                return base.Header;
            }
            set
            {
                base.Header = value;
            }
        }

        public override string Footer
        {
            get
            {
                return base.Footer;
            }
            set
            {
                base.Footer = value;
            }
        }

        public override bool IgnoresException
        {
            get
            {
                return base.IgnoresException;
            }
            set
            {
                base.IgnoresException = value;
            }
        }

        public override void ActivateOptions()
        {
            base.ActivateOptions();
        }

        protected override log4net.Util.PatternParser CreatePatternParser(string pattern)
        {
            return base.CreatePatternParser(pattern);
        }

        public override void Format(System.IO.TextWriter writer, log4net.Core.LoggingEvent loggingEvent)
        {
            writer.WriteLine("/////////////////////////////////////////////////////////////////////////////////");
            base.Format(writer, loggingEvent);
            writer.WriteLine("/////////////////////////////////////////////////////////////////////////////////");
        }
    }
}
